package com.zheng;


import com.zheng.api.HelloService;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

@Service
public class HelloServiceImpl implements HelloService {
    @Override
    public String sayHello(String name) {
        System.out.println("ip"+ RpcContext.getContext().getAttachment("ip"));
        return "hello:"+name;
    }
}
